<template>
  <div>
    <van-card
      :num="item.count"
      :price="item.price"
      desc="描述信息"
      :title="item.name"
      :thumb="item.img"
      @click="handleClick(item)"
    >
      <template #tags>
        <slot name="tag"></slot>
      </template>
      <template #footer>
        <slot name="footer"></slot>
      </template>
    </van-card>
  </div>
</template>

<script>
export default {
  props: ['item'],
  methods: {
    handleClick(item) {
      this.$router.push(`/detail/${item.id}`)
    },
  },
}
</script>

<style></style>
